package day3;

import java.io.*;

//测试字符流和缓冲流
public
class TestChar {
    public static
    void main(String[] args) {
        try (FileReader fr=new FileReader("D:\\IO\\testIO.txt");
             FileWriter fw=new FileWriter("D:\\IO\\testIO1.txt");
             BufferedReader br=new BufferedReader(fr);
             BufferedWriter bw=new BufferedWriter(fw);){
             String str;
             while ((str=br.readLine())!=null){
                 bw.write(str+"\n");
             }

        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
